<?php

  // rme added
  $EmployeeUid = $_SESSION["EMPLOYEE"];
  // rme end

  require_once ( PATH_PLUGINS . 'hr' . PATH_SEP . 'class.hr.php');
  $pluginObj = new hrClass ();

  require_once ( "classes/model/HrJobs.php" );


  $fields['JOB_UID'] = G::GenerateUniqueID();;

  $fields['EMPLOYEE_ID'] = $EmployeeUid;
  $fields['POSITION_ID'] = '';
  $fields['BOARDHIREDATE'] = '';
  $fields['TYPEOFAPPOINTMENT_ID'] = '';
  $fields['TYPEEMPLOYEE_ID'] = '';
  $fields['JOBTITLE_ID'] = '';
  $fields['TYPEPAY_ID'] = '';
//  $fields['ANNUALSALARY'] = '';
  $fields['FTE'] = '';
  $fields['PRIMARYIRN'] = '';
//  $fields['HOURLYRATE'] = '';
  $fields['SPREADPAY'] = '';
//  $fields['NUMBEROFWORKDAYS'] = '';
  $fields['OTHERPAY'] = '';
  $fields['LOCATIONIRN'] = '';
  $fields['JOBASSIGNMENT'] = '';
  $fields['JOBSTATUS_ID'] = '';
  $fields['TERMINATIONDATE'] = '';
  $fields['PROJECTTERMINATIONDATE'] = '';
  $fields['PAYUNIT_ID'] = '';
  $fields['UNITAMOUNT'] = '';
  $fields['PAYPLAN_ID'] = '';
  $fields['HOURSINDAY'] = '';
  $fields['DAYSINPERIOD'] = '';
//  $fields['BUILDINGPERCENT'] = '';
  $fields['NUMBEROFPAYS'] = '';
  $fields['FUNCTIONS'] = '';
  $fields['FUND'] = '';
  $fields['OBJECT'] = '';
  $fields['OPU'] = '';
  $fields['SPECIALCOSTCENTER'] = '';
  $fields['SUBJECT'] = '';
  $fields['FUNDSOURCECODE1'] = '';
  $fields['FUNDSOURCECODE1P'] = '';
  $fields['FUNDSOURCECODE2'] = '';
  $fields['FUNDSOURCECODE2P'] = '';
  $fields['FUNDSOURCECODE3'] = '';
  $fields['FUNDSOURCECODE3P'] = '';
  $fields['INSTRUCTIONALLEVEL'] = '';

  $G_MAIN_MENU = 'processmaker';
  $G_SUB_MENU = 'hr/menuhrEmployee';
  $G_ID_MENU_SELECTED = 'ID_HR_EMP';
  $G_ID_SUB_MENU_SELECTED = 'ID_HR_JOBS';


  $G_PUBLISH = new Publisher;
  $G_PUBLISH->AddContent('xmlform', 'xmlform', 'hr/hrJobsEdit', '', $fields, 'hrJobsSave' );  
  G::RenderPage('publish', 'blank');   
?>